STELLA_DIR := core

CCFLAGS := \
	-ISDL/include \
	-ISDL/src

CXXFLAGS := \
	-I. \
	-Iport \
	-Icore/src/emucore \
	-Icore/src/common \
	-Icore/src/common/tv_filters \
	-Icore/src/emucore/tia \
	-Icore/src/emucore/tia/frame-manager \
	-Icore/src/lib/json \
	-Icore/src/common/repository/sqlite \
	-Icore/src/os/unix \
	-Icore/src/gui \
	-Icore/src/lib/httplib \
	-Icore/src/lib/sqlite \
	-ISDL/include/SDL2 \
	-ISDL/include \
	-ISDL/src \
	-DUNIX \
	-DSOUND_SUPPORT \
 -DSDL_ENABLE_OLD_NAMES \
	-D_REENTRANT \
	-D__USE_BIZHAWK \
	-std=gnu++17 \
	-Wno-multichar \

LDFLAGS := 

TARGET := stella.wbx

SRCS = \
	BizhawkInterface.cxx \
 port/EventHandlerBizhawk.cxx \
	port/FBBackendBizhawk.cxx \
	port/FBSurfaceBizhawk.cxx \
	port/OSystemBizhawk.cxx \
	port/SoundBizhawk.cxx \
	core/src/emucore/OSystem.cxx \
	core/src/emucore/Switches.cxx \
	core/src/emucore/FrameBuffer.cxx \
	core/src/emucore/Console.cxx \
	core/src/common/Logger.cxx \
	core/src/common/tv_filters/NTSCFilter.cxx \
	core/src/common/tv_filters/AtariNTSC.cxx \
	core/src/common/AudioSettings.cxx \
	core/src/common/VideoModeHandler.cxx \
	core/src/common/PhysicalJoystick.cxx \
	core/src/common/ThreadDebugging.cxx \
	core/src/common/TimerManager.cxx \
	core/src/common/PKeyboardHandler.cxx \
	core/src/common/PhosphorHandler.cxx \
	core/src/common/JoyMap.cxx \
	core/src/common/ZipHandler.cxx \
	core/src/common/MouseControl.cxx \
	core/src/common/PJoystickHandler.cxx \
	core/src/common/JPGLibrary.cxx \
	core/src/common/AudioQueue.cxx \
	core/src/common/StateManager.cxx \
	core/src/common/DevSettingsHandler.cxx \
	core/src/common/FpsMeter.cxx \
	core/src/common/audio/ConvolutionBuffer.cxx \
	core/src/common/audio/HighPass.cxx \
	core/src/common/audio/SimpleResampler.cxx \
	core/src/common/audio/LanczosResampler.cxx \
	core/src/common/StaggeredLogger.cxx \
	core/src/common/Base.cxx \
	core/src/common/FSNodeZIP.cxx \
	core/src/common/KeyMap.cxx \
	core/src/common/repository/KeyValueRepositoryJsonFile.cxx \
	core/src/common/repository/CompositeKVRJsonAdapter.cxx \
	core/src/common/repository/sqlite/SqliteDatabase.cxx \
	core/src/common/repository/sqlite/SqliteStatement.cxx \
	core/src/common/repository/sqlite/SqliteTransaction.cxx \
	core/src/common/repository/sqlite/AbstractKeyValueRepositorySqlite.cxx \
	core/src/common/repository/sqlite/KeyValueRepositorySqlite.cxx \
	core/src/common/repository/sqlite/StellaDb.cxx \
	core/src/common/repository/sqlite/CompositeKeyValueRepositorySqlite.cxx \
	core/src/common/repository/KeyValueRepositoryPropertyFile.cxx \
	core/src/common/repository/CompositeKeyValueRepository.cxx \
	core/src/common/repository/KeyValueRepositoryConfigfile.cxx \
	core/src/common/Bezel.cxx \
	core/src/common/PNGLibrary.cxx \
	core/src/common/PaletteHandler.cxx \
	core/src/common/RewindManager.cxx \
	core/src/emucore/Genesis.cxx \
	core/src/emucore/Bankswitch.cxx \
	core/src/emucore/Cart03E0.cxx \
	core/src/emucore/CartF0.cxx \
	core/src/emucore/Cart4K.cxx \
	core/src/emucore/CartWD.cxx \
	core/src/emucore/Cart4A50.cxx \
	core/src/emucore/CartBF.cxx \
	core/src/emucore/EmulationWorker.cxx \
	core/src/emucore/CartF6.cxx \
	core/src/emucore/Cart.cxx \
	core/src/emucore/CartF4SC.cxx \
	core/src/emucore/CartCTY.cxx \
	core/src/emucore/CartF8SC.cxx \
	core/src/emucore/CartDetector.cxx \
	core/src/emucore/CartDFSC.cxx \
	core/src/emucore/Serializer.cxx \
	core/src/emucore/Cart0840.cxx \
	core/src/emucore/CartFA.cxx \
	core/src/emucore/CartX07.cxx \
	core/src/emucore/Cart2K.cxx \
	core/src/emucore/Cart3EX.cxx \
	core/src/emucore/CartDPCPlus.cxx \
	core/src/emucore/CartBFSC.cxx \
	core/src/emucore/CartCM.cxx \
	core/src/emucore/CartEF.cxx \
	core/src/emucore/CartSB.cxx \
	core/src/emucore/MD5.cxx \
	core/src/emucore/Settings.cxx \
	core/src/emucore/CartBUS.cxx \
	core/src/emucore/SaveKey.cxx \
	core/src/emucore/CartDPC.cxx \
	core/src/emucore/CompuMate.cxx \
	core/src/emucore/TIASurface.cxx \
	core/src/emucore/Paddles.cxx \
	core/src/emucore/CartEFSC.cxx \
	core/src/emucore/Joystick.cxx \
	core/src/emucore/Lightgun.cxx \
	core/src/emucore/KidVid.cxx \
	core/src/emucore/CartAR.cxx \
	core/src/emucore/CartFC.cxx \
	core/src/emucore/Cart3F.cxx \
	core/src/emucore/FBSurface.cxx \
	core/src/emucore/Cart3E.cxx \
	core/src/emucore/GlobalKeyHandler.cxx \
	core/src/emucore/PointingDevice.cxx \
	core/src/emucore/CartTVBoy.cxx \
	core/src/emucore/CartCreator.cxx \
	core/src/emucore/CartF6SC.cxx \
	core/src/emucore/Cart4KSC.cxx \
	core/src/emucore/Props.cxx \
	core/src/emucore/Thumbulator.cxx \
	core/src/emucore/DispatchResult.cxx \
	core/src/emucore/EmulationTiming.cxx \
	core/src/emucore/PlusROM.cxx \
	core/src/emucore/CartGL.cxx \
	core/src/emucore/Cart0FA0.cxx \
	core/src/emucore/CartMVC.cxx \
	core/src/emucore/Keyboard.cxx \
	core/src/emucore/CartFA2.cxx \
	core/src/emucore/QuadTari.cxx \
	core/src/emucore/CartFE.cxx \
	core/src/emucore/CartMDM.cxx \
	core/src/emucore/CartF4.cxx \
	core/src/emucore/CartF8.cxx \
	core/src/emucore/CartCV.cxx \
	core/src/emucore/EventHandler.cxx \
	core/src/emucore/Driving.cxx \
	core/src/emucore/M6532.cxx \
	core/src/emucore/System.cxx \
	core/src/emucore/M6502.cxx \
	core/src/emucore/Joy2BPlus.cxx \
	core/src/emucore/CartE7.cxx \
	core/src/emucore/OSystemStandalone.cxx \
	core/src/emucore/tia/Player.cxx \
	core/src/emucore/tia/LatchedInput.cxx \
	core/src/emucore/tia/Missile.cxx \
	core/src/emucore/tia/frame-manager/FrameLayoutDetector.cxx \
	core/src/emucore/tia/frame-manager/AbstractFrameManager.cxx \
	core/src/emucore/tia/frame-manager/FrameManager.cxx \
	core/src/emucore/tia/frame-manager/JitterEmulation.cxx \
	core/src/emucore/tia/AnalogReadout.cxx \
	core/src/emucore/tia/Background.cxx \
	core/src/emucore/tia/DrawCounterDecodes.cxx \
	core/src/emucore/tia/TIA.cxx \
	core/src/emucore/tia/Playfield.cxx \
	core/src/emucore/tia/Audio.cxx \
	core/src/emucore/tia/AudioChannel.cxx \
	core/src/emucore/tia/Ball.cxx \
	core/src/emucore/CartARM.cxx \
	core/src/emucore/PropsSet.cxx \
	core/src/emucore/ProfilingRunner.cxx \
	core/src/emucore/CartUA.cxx \
	core/src/emucore/CartE0.cxx \
	core/src/emucore/Booster.cxx \
	core/src/emucore/CartEnhanced.cxx \
	core/src/emucore/FSNode.cxx \
	core/src/emucore/CartCDF.cxx \
	core/src/emucore/ControllerDetector.cxx \
	core/src/emucore/MindLink.cxx \
	core/src/emucore/Cart3EPlus.cxx \
	core/src/emucore/MT24LC256.cxx \
	core/src/emucore/CartDF.cxx \
	core/src/emucore/Control.cxx \
	core/src/emucore/AtariVox.cxx \
	core/src/os/unix/SerialPortUNIX.cxx \
	core/src/lib/tinyexif/tinyexif.cxx \
	core/src/lib/sqlite/sqlite3.c \
	core/src/lib/nanojpeg/nanojpeg.c \

include ../common.mak
